
import 'package:flutter/material.dart';

class MiziGridPainter extends CustomPainter {
  Paint paint1 = Paint()
    ..color = Colors.blueGrey
    ..style = PaintingStyle.stroke
    ..strokeWidth = 1;
  Paint paint2 = Paint()
    ..color = Colors.blueGrey[200]!
    ..style = PaintingStyle.stroke
    ..strokeWidth = 1;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.drawRect(Rect.fromLTWH(0, 0, size.width, size.height), paint1);
    canvas.drawLine(const Offset(0, 0), Offset(size.width, size.height), paint2);
    canvas.drawLine(Offset(size.width, 0), Offset(0, size.height), paint2);
    canvas.drawLine(Offset(size.width / 2, 0), Offset(size.width / 2, size.height), paint2);
    canvas.drawLine(Offset(0, size.height / 2), Offset(size.width, size.height / 2), paint2);
  }

  @override
  bool shouldRepaint(covariant CustomPainter oldDelegate) {
    return false;
  }
}